package com.huawei.appmarket.support.audio.notification;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol.Request;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.ayw;
import o.ayy;
import o.ccz;
import o.cjk;
import o.cjl;
import o.cjm;
import o.cjo;
import o.dgm;

public class AudioNotificationJumpActivity extends BaseActivity {
    private static boolean ॱˊ = false;

    public void onCreate(Bundle bundle) {
        ayy.ˋ().ˎ(getWindow());
        requestWindowFeature(1);
        ayw.ॱ((Activity) this);
        super.onCreate(bundle);
        ॱˊ();
        finish();
    }

    private void ॱˊ() {
        SafeIntent safeIntent = new SafeIntent(getIntent());
        int intExtra = safeIntent.getIntExtra("service_type", ccz.ॱ());
        String stringExtra = safeIntent.getStringExtra("detailId");
        String stringExtra2 = safeIntent.getStringExtra("traceId");
        String ˎ = dgm.ˎ(intExtra);
        if (cjl.ˋ(ˎ) != null) {
            Intent ॱ = new cjm(ˎ, null).ॱ(this);
            ॱ.putExtra("detailId", stringExtra);
            ॱ.putExtra("traceId", stringExtra2);
            ˎ(true);
            try {
                startActivity(ॱ);
            } catch (Exception e) {
                ˎ(false);
            }
        }
    }

    public static void ˎ(boolean z) {
        ॱˊ = z;
    }

    public static boolean ᐝ() {
        return ॱˊ;
    }

    public static void ˎ(Context context, Intent intent) {
        if (ᐝ()) {
            SafeIntent safeIntent = new SafeIntent(intent);
            String stringExtra = safeIntent.getStringExtra("detailId");
            String stringExtra2 = safeIntent.getStringExtra("traceId");
            cjo appDetailActivityProtocol = new AppDetailActivityProtocol();
            appDetailActivityProtocol.ˏ(new Request(stringExtra, stringExtra2));
            cjk.ˎ().ˋ(context, new cjm("appdetail.activity", appDetailActivityProtocol));
            ˎ(false);
        }
    }
}
